
import { type ComponentConfigModel } from "epic-designer";
export default {
    component: () => import('./index.vue'),
    config: {
        action: [
            {
                describe: '使输入框获取焦点',
                type: 'focus',
            },
            {
                describe: '使输入框失去焦点',
                type: 'blur',
            },
            {
                describe: '选中输入框中的文字',
                type: 'select',
            },
        ],
        attribute: [
            {
                field: 'field',
                label: '字段名',
                type: 'input',
            },
            {
                field: 'label',
                label: '标题',
                type: 'input',
            },
            {
                field: 'componentProps.placeholder',
                label: '占位内容',
                type: 'input',
            },
            {
                componentProps: {
                    placeholder: '请输入',
                },
                field: 'componentProps.defaultValue',
                label: '默认值',
                type: 'input',
            },
            {
                componentProps: {
                    allowClear: true,
                    options: [
                        {
                            label: '大号',
                            value: 'large',
                        },
                        {
                            label: '中等',
                            value: 'middle',
                        },
                        {
                            label: '小型',
                            value: 'small',
                        },
                    ],
                    placeholder: '请选择',
                },
                field: 'componentProps.size',
                label: '尺寸',
                type: 'select',
            }
        ],
        event: [
            {
                describe: '输入值时',
                type: 'input',
            },
            {
                describe: '值修改时',
                type: 'change',
            },
            {
                describe: '按下回车时',
                type: 'pressEnter',
            },
            {
                describe: '获取焦点时',
                type: 'focus',
            },
            {
                describe: '失去焦点时',
                type: 'blur',
            },
        ],
    },
    defaultSchema: {
        componentProps: {
            placeholder: '请输入',
        },
        field: 'babycare-table',
        input: true,
        label: '婴幼儿照护服务设施配建情况表',
        type: 'babycare-table',
    },
    groupName: '自定义',
    icon: 'icon-chukusaomiao',
    sort: 2000,
} as ComponentConfigModel;
